<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSysSetUpTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //用户协议及认证权益设置
        Schema::create('sys_set_up', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->nullable()->comment('标题');
            $table->string('desc')->nullable()->comment('描述');
            $table->text('content')->nullable()->comment('内容');
            $table->integer('type')->default(0)->comment('类型 0：用户协议 1：认证规则及权益');
            $table->integer('status')->default(0)->comment('状态 0::停用 1：启用');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
